home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15455 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.8 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Dangling pointer?
  5. Date: 18 Apr 1996 14:46:43 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4l6d83INN52t@keats.ugrad.cs.ubc.ca>
  8. References: <4l0r4b$jte@dewey.csun.edu> <fcusack-1604962132440001@mudskipper.cac.psu.edu> <4l33dcINN8ms@keats.ugrad.cs.ubc.ca> <829849901snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <829849901snz@genesis.demon.co.uk>,
  12. Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
  13. >In article <4l33dcINN8ms@keats.ugrad.cs.ubc.ca>
  14. >           c2a192@ugrad.cs.ubc.ca "Kazimir Kylheku" writes:
  15. >
  16. >>In article <fcusack-1604962132440001@mudskipper.cac.psu.edu>,
  17. >>frank. <fcusack@tdx.org> wrote:
  18. >>>In article <4l0r4b$jte@dewey.csun.edu>, kc44097@csun.edu (chen) wrote:
  19. >>>
  20. >>>>     What is "dangling pointer",can someone give me a defination and example?
  21. >>>> Please e-mail me kc44097@huey.csun.edu
  22. >>>> 
  23. >>>
  24. >>>It's the complement of a split infinitive. :)
  25. >>
  26. >>Actually it isn't. A there is nothing wrong with putting words between the "to"
  27. >>and the verb.
  28. >
  29. >It depends.
  30. >
  31. >>In fact, it's the only place an adjective can go:
  32. >
  33. >???
  34. >
  35. >>        "I want to quickly get this message out"
  36. >
  37. >Quick is an adjective, quickly is an adverb.
  38.  
  39. Ah yes, of course.
  40.  
  41. >>is perfectly grammatical.
  42. >
  43. >It depends on the grammar rules you are using.
  44. >
  45. >>It would be ungrammatical to put the "quickly" in
  46. >>front of the "to" or after the "get". You could rewrite the sentence as "I want
  47. >>to get this message out quickly", but that is a transformation.
  48. >
  49. >In what sense? Certainly it's putting the word in a different place but you'd
  50. >have to do that with any of the alternatives. It certainly shows that quickly
  51. >*can* go somewhere else.
  52.  
  53. In the sense of transformational syntax. It's just a hypothesis, though. I'm
  54. not sure if the movement of ``quickly'' to the end of the sentence is governed
  55. purely by context-free phase-structure rules, or by transformations (I'd have
  56. to check an up-to-date reference like _Introducting Transformational Grammar_
  57. by Jamal Ouhalla).
  58.  
  59. But saying or writing ``I want quickly to get this message out'', or ``I want
  60. to get quickly this message out'', is not something a native speaker of English
  61. would recognize as grammatical, or utter (except as a mistake).
  62.  
  63. Yet people would accept ``...to quickly get...'' without a second thought.
  64.  
  65. >>Linguists take
  66. >>the view that the syntax of the language is defined by how the speaker's use
  67. >>it, not by the utterly empirically inadequate rules of grammar would have them
  68. >>speak or write.
  69. >
  70. >The rules for prose, or for that matter poetry can have significant
  71. >differences to those of spoken language. They tend to be more formal, or
  72. >perhaps spoken langage is just much looser in the application of the rules.
  73. >French has different verb forms for written narrative.
  74.  
  75. Yes. Spoken language doesn't have consciously accesible rules. Linguists can
  76. only invent theories about what the (unobservable) rules are and test these
  77. against empirical observation to try to uncover what it means when someone
  78. knows a language. In linguistics, even stating that something is an adjective,
  79. or a noun phrase is considered a theoretical claim that must be backed up by
  80. some sort of evidence that these categories are somehow reflected in the
  81. observed language.
  82.  
  83. On the other hand, prescriptive rules for how one ought to speak or write are
  84. a different matter altogether. There is no justifiable reason to not split an
  85. infinitive (as I just did, what do you know!), other than someone's arbitrary
  86. idea on what constitutes ``good'' writing. It is somewhat like if someone told
  87. you not to write i[a] in C, or to not write int const a because the const
  88. really _ought_ to be written first, and the integral expression really ought to
  89. be the thing in the square brackets, because it is ``proper'' style.
  90.  
  91. >>Most grammar texts don't even recognize the recursively
  92. >>generative nature of sentence structure. So the next time someone criticizes
  93. >>your infinitive, tell them to split!
  94. >
  95. >It depends on what you're writing. Usenet tends to be more interactive,
  96. >almost like a spoken language so I'd agree with you in that context.
  97.  
  98. If you want to address certain kinds of audiences, you benefit from following
  99. these rules for various ``levels'' of speaking or writing: colloquial,
  100. informal, formal, and so on. I've heard left-wing linguist types refer to these
  101. as ``socio-economically preferred dialects''. They clearly have their place,
  102. but are useless as a guide to the syntax of a language.
  103.  
  104. >So you're talking about a pointer that doesn't hold a meaningful value.
  105.  
  106. Right. I've heard this referred to before as a dangling pointer. Though
  107. sometimes the word is also used to denote syntactic ambiguities (``dangling
  108. else'' in an if/then). 
  109.